package com.dyylearn.pkg.super_;

public class B extends A{
    public int n1 = 888;

    //super从父类开始向上查找
    //this从本类开始向上查找
    public void test() {
        System.out.println("super.n1=" + super.n1);
    }

    //子类不能访问符类的私有属性
    public void hi() {
        System.out.println(super.n1 + " " + super.n2 + " " + super.n3);
    }

    public void ok() {
        super.test100();
        super.test200();
        super.test300();
    }

    public B() {
//        super();
//        super("hello");
        super("jack", 10);
    }
}
